package org.farec.tcc.jdbc;

import java.sql.*;

public class ConnectionFactory {

	public Connection getConnection()
	{
		try
		{
			Class.forName("org.postgresql.Driver");
			return DriverManager.getConnection("jdbc:postgresql://192.168.2.12/bd_ossistemas","postgres","P@ssw0rd");
		}
		catch(Exception e)
		{
			throw new RuntimeException(e);
		}
		
	}
}
